package org.genntii.warehousesystem.domain.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "订单实体")
public class OrderDTO {
    @Schema(description = "货品id",type = "int",required = true)
    private int goodsId;
    @Schema(description = "数量",type = "int",required = true)
    private int num;
    @Schema(description = "仓库id",type = "int",required = true)
    private int warehouseId;
    @Schema(description = "单件价格",type = "BigDecimal",required = true)
    private BigDecimal pricePer;
    @Schema(description = "地址id",type = "int",required = true)
    private int addressId;
}
